package com.aruba.exceptionhandle;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.ModelAndView;

//@ControllerAdvice
public class GloableExceptionHandler {

    @ExceptionHandler
    public ModelAndView handleException() {
        ModelAndView mv = new ModelAndView();
        mv.setViewName("err");
        return mv;
    }

}
